package com.dailyblue.java.standard.interview.offer1;

import java.math.BigDecimal;

public class Fruit {
    //private CalculateValue calculater = new CalculateMethod2();
    private BigDecimal price = null;
    private BigDecimal weight = null;

    public Fruit(BigDecimal weight, BigDecimal price) {
        this.price = price;
        this.weight = weight;
    }

    //省略了私有成员的 get，set 方法
    public void calculator(CalculateValue calculate) {
        //this.calculater = calculate;
    }
}
